/**
 * 产品采购入库表 api 封装
 *
 * @Author:    zzw
 * @Date:      2024-10-09 10:39:10
 * @Copyright  jz
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const purchaseInboundApi = {

  /**
   * 分页查询  @author  zzw
   */
  queryPage : (param) => {
    return postRequest('/purchaseInbound/queryPage', param);
  },

  /**
   * 增加  @author  zzw
   */
  add: (param) => {
      return postRequest('/purchaseInbound/add', param);
  },

  /**
   * 修改  @author  zzw
   */
  update: (param) => {
      return postRequest('/purchaseInbound/update', param);
  },


  /**
   * 删除  @author  zzw
   */
  delete: (id) => {
      return getRequest(`/purchaseInbound/delete/${id}`);
  },

  /**
   * 批量删除  @author  zzw
   */
  batchDelete: (idList) => {
      return postRequest('/purchaseInbound/batchDelete', idList);
  },

  approve: (id) => {
    return getRequest(`/purchaseInbound/approve/${id}`);
   // return getRequest('/purchaseInbound/approve/');
},
  //@GetMapping("/purchaseInbound/approve/{id}")

};
